package com.carleasoft.mps.cms;

import com.carleasoft.mps.cms.install.InstallOpenApi;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.Import;

@EnableConfigurationProperties
@EnableFeignClients(basePackages = {"com.carleasoft.mps.security.permission.feign","com.carleasoft.mps.cms.feign"})
@ServletComponentScan
@EnableEurekaClient
@SpringBootApplication(scanBasePackages = {"com.carleasoft.mps"})
@Import(value = {InstallOpenApi.class}) //加载访问白名单
public class CmsApplication {
    public static void main(String[] args) {
        SpringApplication.run(CmsApplication.class, args);
    }
}